//  This file is part of Swordbible - http://www.swordwarrior.net
//  Copyright (C) 2003-2009 Manu Mital mital.manu@gmail.com

//  This program is free software; you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation; either version 2, or (at your option)
//  any later version.

//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.

//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software Foundation,
//  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


#pragma once
#include "afxwin.h"
#include "afxcmn.h"
#include "SwordBibleFonts.h"
#include "SwordbibleDoc.h"
#include "ColorMgr.h"
#include "MyToolBar.h"
#include "SimpleBrowser.h"



class CParallelBible : public CPropertyPage
{
	DECLARE_DYNAMIC(CParallelBible)

public:
	virtual BOOL OnInitDialog();
	CParallelBible();
	virtual ~CParallelBible();

// Dialog Data
	enum { IDD = IDD_PARALLELPAGE };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	CMyToolBar m_wndFormatBar;

	DECLARE_MESSAGE_MAP()
public:
	BOOL BibleActive[nBibles];

	CString chapText;
	CString headText;
  SimpleBrowser m_browser;
    
	 BOOL OnClickReference(CString ref);

	virtual BOOL OnSetActive();
    afx_msg void OnZoom();
	afx_msg void OnUpdateZoom(CCmdUI *pCmdUI);
	afx_msg void OnSelectAll();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnPrint();
	afx_msg void OnPrevious();
	afx_msg void OnNext();
	afx_msg void OnShowVersions();
	afx_msg void OnCopy();
	BOOL OnToolTipNotify(UINT id, NMHDR *pNMHDR,   LRESULT *pResult);
	afx_msg LONG OnMainFrameCommand(UINT, LONG);
  virtual BOOL PreTranslateMessage(MSG* pMsg);

	void showText();
	void OnChangeVersions();

private:
  CRect rect;
	int text_width;
	int text_height;

private:
  	void ZoomText();
    void OnRightButtonDown();
   
 

  
};
